home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 1998 June / SGI IRIX 6.5 Applications 1998 June.iso / dist / gateway.idb / etc / init.d / run-sdpd.z / run-sdpd
Text File  |  1998-05-04  |  584b  |  44 lines

  1. #!/sbin/sh
  2.  
  3. # Script used to start and stop the session directory server daemon
  4. #
  5. # $Revision: 1.4 $
  6.  
  7. IS_ON=/sbin/chkconfig
  8. SDPD=/usr/OnRamp/bin/sdpd
  9. KILLALL=/sbin/killall
  10.  
  11. if $IS_ON sdpd; then
  12.     :
  13. else
  14.     exit 0
  15. fi
  16.  
  17. if $IS_ON verbose ; then
  18.     ECHO=echo
  19.     VERBOSE=-v
  20. else        # For a quiet startup and shutdown
  21.     ECHO=:
  22.     VERBOSE=
  23. fi
  24.     
  25.  
  26. case "$1" in
  27. 'start')
  28.     $ECHO -n "Starting Session Directory Server:\n"
  29.     $KILLALL $SDPD
  30.     $SDPD
  31.     ;;
  32.  
  33. 'stop')
  34.     $ECHO -n "Stopping Session Directory Server:\n"
  35.     $KILLALL $SDPD
  36.     ;;
  37.  
  38. *)
  39.     $ECHO "usage: $0 {start|stop}"
  40.     exit 1
  41.     ;;
  42. esac
  43.  
  44.